import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
import { IsNotEmpty } from 'class-validator';

@Entity()
export class LuckyInfo{
  
  @PrimaryGeneratedColumn()
  @IsNotEmpty()
  id: number;

  @Column()
  @IsNotEmpty()
  title: string;

  @Column()
  @IsNotEmpty()
  start: string;

  @Column()
  @IsNotEmpty()
  end: string;

  @Column()
  frist: string;

  @Column()
  second: string;

  @Column()
  images: string;

  @Column()
  describe: string;
}